<?php
class StatisticsCNZZWidget  extends CWidget{
    
	//输出字符串
	private $cnzz = '';
    
    private $controller= '';
    
    private $action= '';

	public function init(){
        $this->controller = Yii::app()->controller->id;  
        $this->action = Yii::app()->controller->action->id; 
	}

	public function run(){
        $this->cnzzStatistics();
		echo $this->cnzz;
	}
    
    public function cnzzStatistics(){
        $this->cnzz = <<<CNZZ
                <div style='display:none'>\n
                    <script src="http://s15.cnzz.com/stat.php?id=5202599&web_id=5202599&show=pic" language="JavaScript"></script>\n
                </div>\n
CNZZ;
    }
}


